package com.jewaton.auth.commons.entity;


import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * 组织权限表
 */
@Entity
@Table(name = "ROLE_ORG_PERMISSION")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class RoleOrgPermission implements java.io.Serializable {

	private long id;
	private String orgId;
	private long pid;
	
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
    public long getId() {
        return id;
    }
    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "ORG_ID")
    public String getOrgId() {
        return orgId;
    }
    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
    
    @Column(name = "PID", precision = 10, scale = 0)
    public long getPid() {
        return pid;
    }
    public void setPid(long pid) {
        this.pid = pid;
    }
	

   


}
